﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SLIC.Models.Enums;
using System.Collections;
namespace SLIC.Models.EntityModel
{
    public partial class Job
    {
        public string ProcessingBranch { get; set; }
        public string CSR_UserName { get; set; }
       // public string Nearest_PoliceStation { get; set; }
        public List<short> VehicleClassIds { get; set; }
        public ArrayList DamagedItemsList { get; set; }
        public string[] PossibleDRList { get; set; }

        public ArrayList PreAccDamagesItemsList { get; set; }
        public string CurrentPrintStatus { get; set; }

        public string ImagesString { get; set; }
        public int TotalImageCount { get; set; }

        public TyreConditon? Tyre_FL_Status_Enum
        {
            get
            {
                if (Tyre_FL_Status != null)
                {
                    return (TyreConditon)Enum.ToObject(typeof(TyreConditon), Tyre_FL_Status);
                }
                return null;
            }
        }
        public TyreConditon? Tyre_FR_Status_Enum
        {
            get
            {               
                if (Tyre_FR_Status != null)
                {
                    return (TyreConditon)Enum.ToObject(typeof(TyreConditon), Tyre_FR_Status);
                }
                return null;
            }
        }

        public TyreConditon? Tyre_RLL_Status_Enum
        {
            get
            {
                if (Tyre_RLL_Status != null)
                {
                    return (TyreConditon)Enum.ToObject(typeof(TyreConditon), Tyre_RLL_Status);
                }
                return null;
            }
        }

        public TyreConditon? Tyre_RLR_Status_Enum
        {
            get
            {
                if (Tyre_RLR_Status != null)
                {
                    return (TyreConditon)Enum.ToObject(typeof(TyreConditon), Tyre_RLR_Status);
                }
                return null;
            }
        }

        public TyreConditon? Tyre_RRL_Status_Enum
        {
            get
            {
                if (Tyre_RRL_Status != null)
                {
                    return (TyreConditon)Enum.ToObject(typeof(TyreConditon), Tyre_RRL_Status);
                }
                return null;
            }
        }

        public TyreConditon? Tyre_RRR_Status_Enum
        {
            get
            {
                if (Tyre_RRR_Status != null)
                {
                return (TyreConditon)Enum.ToObject(typeof(TyreConditon), Tyre_RRR_Status);
                }
                return null;
            }
        }
        public JourneyPurpose? Journey_Purpose
        {
            get
            {
                if (Journey_PurposeId != null)
                {
                    return (JourneyPurpose)Enum.ToObject(typeof(JourneyPurpose), Journey_PurposeId);
                }
                return null;
            }
        }

        public RelationshipType? DriverRelationshipEnum
        {
            get
            {
                if (DriverRelationship!=null)
                {

                    return (RelationshipType)Enum.ToObject(typeof(RelationshipType), DriverRelationship); 
                }
                return null;
            }
        }
        
    }
}